<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>ejs循环数据</title>
</head>
<body>
  <%- include('./public/header.ejs') %>
  
  <h2>ejs循环---<%=userinfo%></h2>
  <ul>
    <%for(let i=0;i<list.length;i++){%>
      <li><%=list[i]%></li>
    <%}%>
  </ul>

  <br>
  <h2>绑定html数据</h2>
  <%=content%>

  <br>
  <%-content%>

  <br>
  <h2>添加判断</h2>
  <%if(number >= 24){%>
    大于等于24
  <%} else {%>
    小于24
  <%}%>  
</body>
</html>